package com.bosssoft.ct.springcloud.pojo.entity;

import lombok.*;

import java.util.Objects;

/**
 * @author ChenTong
 * @version 1.0
 * @description role实体类
 * @date 2020/6/21 16:01
 * @modified
 **/
public class Role extends BaseEntity{
    // 角色名称
    private String roleName;
    // 角色描述
    private String roleDesc;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        Role role = (Role) o;
        return Objects.equals(roleName, role.roleName) &&
                Objects.equals(roleDesc, role.roleDesc);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), roleName, roleDesc);
    }
}
